package com.klb.service.catalog.impl;

import java.util.List;

import com.klb.dao.impl.ArticleDaoImpl;
import com.klb.model.BbsArticle;
import com.klb.service.catalog.ArticleServiceCatalog;

/**
 * Created by fujia on 2016/6/5.
 */
public class ArticleServiceCatalogImpl implements ArticleServiceCatalog {
    private ArticleDaoImpl articleDao;

    public void setArticleDao(ArticleDaoImpl articleDao) {
        this.articleDao = articleDao;
    }


    @Override
    public List<BbsArticle> getAllBlockArticles(int blockId) {
        return this.articleDao.getArticlesByBlockId(blockId);
    }

}
